package tt.dz.appserver.service.task;

import java.lang.reflect.Method;

import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

/**
 * 任务异常处理
 * @author xielf
 *
 */
public class MyAsyncUncaughtExceptionHandler implements
		AsyncUncaughtExceptionHandler {

	@Override
	public void handleUncaughtException(Throwable throwable, Method method,
			Object... arg2) {
		throwable.printStackTrace();
        System.out.println("异步任务出错，Messge：" + throwable.getMessage());
	}

}
